//
//  PPPhoto.h
//  pickpic
//
//  Created by 胡文广 on 2017/4/12.
//  Copyright © 2017年 MicroDream. All rights reserved.
//

#import <UIKit/UIKit.h>


//处理封面
typedef enum : NSUInteger {
    PPPhotoCoverSytleNone = 1, //封面默认显示样式
    PPPhotoCoverSytleCustom = 2, //封面自定义样式
} PPPhotoCoverSytle;



//处理底图
typedef enum : NSUInteger {
    PPPhotoLastCoverSytleNone = 1, //底图默认显示样式
    PPPhotoLastCoverSytleCustom = 2, //底图自定义样式
} PPPhotoLastCoverSytle;

@class PPHomeAlbumModel,PPTemplateCoverFrame,PPTemplateDescModel,PPTemplateInnerModel,PPAlbumModel;
@interface PPPhoto : UIImageView
/**
 *  原始imageView
 */
@property (nonatomic,strong) UIImageView *sourceImageView;
/**
 *  大图URL
 */
@property (nonatomic,strong) NSString *bigImgUrl;

@property (nonatomic,copy) NSString *photoDesc;

@property (nonatomic,strong) UIImage *coverImage;

@property (nonatomic,copy) NSString *desc;

+ (instancetype)photoViewWithText:(NSString *)text;
+ (instancetype)photoViewWithCover:(UIImage *)cover;

@property (nonatomic,strong) PPHomeAlbumModel *albumCoverModel;
//@property (nonatomic,strong) PPAlbumModel *albumM;

@property (nonatomic,assign)  PPPhotoCoverSytle style;

@property (nonatomic,copy) NSString *albumUUID;

@property (nonatomic,assign)  PPPhotoLastCoverSytle lastStyle;
@property (nonatomic,strong) UIImage *coverLastImage;
@property (nonatomic,strong) UIImageView *codeImageView;


@property (nonatomic,strong) PPTemplateCoverFrame *coverFrame;
@property (nonatomic,strong) PPTemplateDescModel *descModel;
@property (nonatomic,strong) PPTemplateInnerModel *innerModel;
@property (nonatomic,strong) UIImage *descImg;
@property (nonatomic,assign) NSInteger totalPage;
@property (nonatomic,copy) NSString *uuid;

@property (nonatomic,assign) BOOL isFull;
@property (nonatomic,assign) NSInteger flag;
- (void)hiddenKeyboard;


@property (nonatomic,strong) UIImage *ebookImage;


//1封面  2描述  3内页
@property (nonatomic,assign) NSInteger picType;

/*
 ** 相册封面信息
 */

/*
 ** 相册内页信息
 */
@property (nonatomic,strong) NSMutableArray *pics;


@property (nonatomic,copy) void (^BlockStartEdit)();
@property (nonatomic,copy) void (^BlockAccomplishEdit)();

@property (nonatomic,assign) NSInteger orderNum;
@end
